<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
    />
    <title>系统用户首页原型</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        font-family:
          -apple-system,
          BlinkMacSystemFont,
          'Helvetica Neue',
          Helvetica,
          Segoe UI,
          Arial,
          Roboto,
          'PingFang SC',
          'miui',
          'Hiragino Sans GB',
          'Microsoft Yahei',
          sans-serif;
        background-color: #f7f8fa;
        color: #323233;
        line-height: 1.5;
      }

      .app-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      }

      .app-header h1 {
        font-size: 18px;
        font-weight: bold;
        margin: 0;
      }

      .header-actions {
        display: flex;
        gap: 15px;
      }

      .header-actions button {
        background: none;
        border: none;
        position: relative;
      }

      .badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #ff4d4f;
        color: white;
        font-size: 10px;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
        text-align: center;
        border-radius: 8px;
        padding: 0 3px;
      }

      .system-home {
        padding: 15px;
      }

      .welcome-section {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
      }

      .welcome-text h2 {
        margin: 0 0 5px 0;
        font-size: 20px;
      }

      .welcome-text p {
        margin: 0;
        color: #666;
      }

      .avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #1989fa;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: bold;
      }

      .todo-card {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        margin-bottom: 15px;
        overflow: hidden;
      }

      .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
      }

      .card-header h3 {
        margin: 0;
        font-size: 16px;
      }

      .card-header .badge {
        position: static;
        background: #ff4d4f;
        color: white;
        font-size: 12px;
        min-width: 20px;
        height: 20px;
        line-height: 20px;
        text-align: center;
        border-radius: 10px;
        padding: 0 6px;
      }

      .card-content {
        padding: 0 15px;
      }

      .todo-item {
        display: flex;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
      }

      .todo-item:last-child {
        border-bottom: none;
      }

      .todo-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
        font-size: 18px;
        color: white;
      }

      .todo-icon.contract {
        background: #ff9500;
      }

      .todo-icon.client {
        background: #1989fa;
      }

      .todo-icon.case {
        background: #52c41a;
      }

      .todo-content {
        flex: 1;
      }

      .todo-content .title {
        font-size: 15px;
        margin-bottom: 5px;
      }

      .todo-content .meta {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
      }

      .todo-content .meta .time {
        color: #999;
      }

      .todo-content .meta .priority {
        padding: 2px 6px;
        border-radius: 3px;
      }

      .todo-content .meta .priority.high {
        background: #fff1f0;
        color: #f5222d;
      }

      .todo-content .meta .priority.medium {
        background: #fff7e6;
        color: #fa8c16;
      }

      .todo-content .meta .priority.low {
        background: #f6ffed;
        color: #52c41a;
      }

      .data-overview {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
      }

      .overview-item {
        flex: 1;
        background: white;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      }

      .overview-item .value {
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 5px;
      }

      .overview-item .label {
        font-size: 12px;
        color: #999;
        margin-bottom: 10px;
      }

      .overview-item .trend {
        display: flex;
        align-items: center;
        font-size: 12px;
      }

      .overview-item .trend.up {
        color: #52c41a;
      }

      .overview-item .trend.down {
        color: #f5222d;
      }

      .recent-card {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        margin-bottom: 15px;
        overflow: hidden;
      }

      .more-link {
        font-size: 14px;
        color: #1989fa;
        text-decoration: none;
      }

      .tab-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50px;
        background: white;
        display: flex;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
      }

      .tab-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #666;
        font-size: 12px;
      }

      .tab-item.active {
        color: #1989fa;
      }

      .tab-icon {
        font-size: 20px;
        margin-bottom: 3px;
      }
    </style>
  </head>
  <body>
    <div class="app-header">
      <h1>首页</h1>
      <div class="header-actions">
        <button>
          <span>🔍</span>
        </button>
        <button>
          <span>🔔</span>
          <span class="badge">3</span>
        </button>
      </div>
    </div>

    <div class="system-home">
      <div class="welcome-section">
        <div class="welcome-text">
          <h2>您好，张经理</h2>
          <p>今天是星期五，有3项待办事项</p>
        </div>
        <div class="avatar">张</div>
      </div>

      <div class="todo-card">
        <div class="card-header">
          <h3>待办事项</h3>
          <span class="badge">3</span>
        </div>
        <div class="card-content">
          <div class="todo-item">
            <div class="todo-icon contract">C</div>
            <div class="todo-content">
              <div class="title">合同审批 - 广州某科技有限公司</div>
              <div class="meta">
                <span class="time">今天 14:30</span>
                <span class="priority high">高优先级</span>
              </div>
            </div>
          </div>
          <div class="todo-item">
            <div class="todo-icon client">U</div>
            <div class="todo-content">
              <div class="title">客户回访 - 李总</div>
              <div class="meta">
                <span class="time">今天 16:00</span>
                <span class="priority medium">中优先级</span>
              </div>
            </div>
          </div>
          <div class="todo-item">
            <div class="todo-icon case">A</div>
            <div class="todo-content">
              <div class="title">案件进度更新 - 知识产权纠纷</div>
              <div class="meta">
                <span class="time">明天 10:00</span>
                <span class="priority low">低优先级</span>
              </div>
            </div>
          </div>
        </div>
      </div>

      <div class="data-overview">
        <div class="overview-item">
          <div class="value">28</div>
          <div class="label">本月客户</div>
          <div class="trend up">↑ 12%</div>
        </div>
        <div class="overview-item">
          <div class="value">15</div>
          <div class="label">本月合同</div>
          <div class="trend up">↑ 8%</div>
        </div>
        <div class="overview-item">
          <div class="value">7</div>
          <div class="label">本月案件</div>
          <div class="trend down">↓ 3%</div>
        </div>
      </div>

      <div class="recent-card">
        <div class="card-header">
          <h3>最近客户</h3>
          <a href="#" class="more-link">查看全部</a>
        </div>
        <div class="card-content">
          <div class="todo-item">
            <div class="todo-icon client">L</div>
            <div class="todo-content">
              <div class="title">李总 - 广州某科技有限公司</div>
              <div class="meta">
                <span class="time">今天 10:30</span>
                <span>已签约</span>
              </div>
            </div>
          </div>
          <div class="todo-item">
            <div class="todo-icon client">W</div>
            <div class="todo-content">
              <div class="title">王总 - 深圳某贸易有限公司</div>
              <div class="meta">
                <span class="time">昨天 15:20</span>
                <span>洽谈中</span>
              </div>
            </div>
          </div>
        </div>
      </div>

      <div class="recent-card">
        <div class="card-header">
          <h3>最近合同</h3>
          <a href="#" class="more-link">查看全部</a>
        </div>
        <div class="card-content">
          <div class="todo-item">
            <div class="todo-icon contract">C</div>
            <div class="todo-content">
              <div class="title">服务合同 - 广州某科技有限公司</div>
              <div class="meta">
                <span class="time">今天</span>
                <span>待审批</span>
              </div>
            </div>
          </div>
          <div class="todo-item">
            <div class="todo-icon contract">C</div>
            <div class="todo-content">
              <div class="title">咨询合同 - 深圳某贸易有限公司</div>
              <div class="meta">
                <span class="time">昨天</span>
                <span>已签约</span>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="tab-bar">
      <div class="tab-item active">
        <div class="tab-icon">🏠</div>
        <div>首页</div>
      </div>
      <div class="tab-item">
        <div class="tab-icon">👥</div>
        <div>客户</div>
      </div>
      <div class="tab-item">
        <div class="tab-icon">📄</div>
        <div>合同</div>
      </div>
      <div class="tab-item">
        <div class="tab-icon">⚖️</div>
        <div>案件</div>
      </div>
      <div class="tab-item">
        <div class="tab-icon">📊</div>
        <div>统计</div>
      </div>
      <div class="tab-item">
        <div class="tab-icon">👤</div>
        <div>我的</div>
      </div>
    </div>
  </body>
</html>
